
import '../request/api_client.dart';
import '../request/response_data.dart';

class PayAPI {

  //获取支付产品列表-V1.0✔
  static Future<ResponseData> getProducts() async {
    ResponseData responseData = await ApiClient.get("/wechat/getProducts");
    return ResponseData.createFrom(responseData, responseData.data);
  }

  static Future<ResponseData> getAppPayPrepayId(Map<String,dynamic> data) async {
    ResponseData responseData = await ApiClient.get("/wechat/getAppPayPrepayId",queryParameters: data);
    return ResponseData.createFrom(responseData, responseData.data);
  }

  static Future<ResponseData> queryOrder(Map<String,dynamic> data) async {
    ResponseData responseData = await ApiClient.get("/wechat/queryOrder",queryParameters: data);
    return ResponseData.createFrom(responseData, responseData.data);
  }

}